dns dns-to-ip
This command configures the Internal DNS table, which lets you resolve hostnames into IP addresses.
Syntax
(config-network)# dns dns-to-ip <Index> (dns-to-ip-<Index>)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
domain-name |
Defines the host name to be translated. |
first-ip-address |
Defines the first IP address (in dotted-decimal format notation) to which the host name is translated. |
second-ip-address |
Defines the second IP address (in dotted-decimal format notation) to which the host name is translated. |
third-ip-address |
Defines the third IP address (in dotted-decimal format notation) to which the host name is translated. |
Command Mode
Privileged User
Example
This example configures the domain name "proxy.com" with a resolved IP address of 210.1.1.2:
(config-network)# dns dns-to-ip 0 (dns-to-ip-0)# domain-name proxy.com (dns-to-ip-0)# first-ip-address 210.1.1.2